import request from '@/utils/request'
import linq from 'linq'
export async function get任务(XXID,CJPC){
    //
    let res =  await request({
        url: `/Task?$apply=filter(XXID eq '${XXID}' and CJPC eq '${CJPC}')`,
        method: 'get',
      })
    return res.data.value;
    //
    
}
export async function update任务(model){
    let res =  await request({
        url: `/Task(${model.ID})`,
        method: 'put',
        data: model
      })
      return res.data;
}


export async function delete任务(model){
    let res = await  request({
        url: `/Task/${model.ID}`,
        method: 'delete',
      })
      return res.data;
}
export async function add任务(model){
    let res =  await request({
      url: '/Task',
      method: 'post',
      data: model,
    })
    return res.data;
}
